package com.livestocksolutions.ui;

import com.livestocksolutions.LivestockSolutions;
import com.livestocksolutions.Feed;
import com.livestocksolutions.UsedFeed;

/**
 * Display details relating to any Feed, or a particular Feed.
 * @author Ken DeVries
 * @author Adam Parr
 * 
 * @.modified 9 February 2013
 */
public class FeedPanel extends ItemPanel<Feed,UsedFeed> {
	private static final long serialVersionUID = 1L;
	
	/**
	 * Constructor.
	 */
	public FeedPanel(){
		super("Feed");
	}

	@Override
	protected Feed[] getList(){
		return LivestockSolutions.getOnlyFeeds();
	}
	
	@Override
	protected Feed newItem(){
		return new Feed();
	}
	
	@Override
	protected boolean doCheck(boolean isValid) {
		return isValid;
	}
}